* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

ul, ol {
    list-style: none
}
ul, li {
    list-style: none;
}

a, a:link, a:visited {
    color: #333;
    text-decoration: none
}

a:hover, a:active {
    text-decoration: none
}

a img {
    border: 0
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

/* 顶部导航 */
.navbar {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff9900;
    display: flex;
    align-items: center;
}

.logo a{
    color: #ff9900;
}

.logo i {
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff9900;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #333;
    padding: 8px 15px;
    border-radius: 30px;
    width: 200px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px;
    width: 100%;
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
}

/* 分类导航 */
.category-nav {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.category-nav h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #444;
    display: flex;
    align-items: center;
}

.category-nav h2 i {
    margin-right: 10px;
    color: #ff9900;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.category:hover, .category.active {
    background: #ff9900;
    color: white;
}

.loginForm {
    color: #fff;
}

.loginForm a{
    color: #ff9900;
}

.welcomeScreen {
    font-size: 14px;
}

.welcomeScreen a {
    color: #777;
    font-size: 14px;
}

/* 底部 */
footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff9900;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: block;
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #ff9900;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.footer-module {
    padding-bottom: 10px;
    text-align: center;
    padding: 25px;
}
.footer-module a{
    font-size: 12px;
    color: gray;
}

.footer-module-title {
    color: #808080;
    font-weight: normal
}

.tt_one_list a {
    font-size: 14px
}

.footer-module-list li {
    float: left;
    margin-right: 10px;
    position: relative
}

.footer-module-list li a {
    color: #333;
    font-size: 14px
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* 历史按钮样式 start*/
.history-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff9900;
}

.history-btn i {
    margin-right: 5px;
}

/* 历史面板样式 */
.history-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.history-panel.active {
    display: block;
}

.history-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.history-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.history-title i {
    margin-right: 8px;
    color: var(--accent);
}

.clear-history {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.clear-history:hover {
    background: #c82333;
}

.history-content {
    padding: 15px;
}

.history-item {
    display: flex;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.history-poster {
    width: 40px;
    height: 60px;
    border-radius: 4px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.history-poster i {
    color: #888;
    font-size: 1.2rem;
}

.history-info {
    flex: 1;
    overflow: hidden;
}

.history-movie-title {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #E67E22FF;
}

.history-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 3px;
}

.history-rating {
    color: var(--accent);
    font-weight: bold;
}

.history-time {
    font-size: 0.75rem;
    color: #999;
}

.empty-history {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-style: italic;
}
/* 浏览历史样式 end*/